class NewDegreeRequirements < ActiveRecord::Migration
  def self.up
    create_table :degree_requirements do |t|
      t.string :friendly_name
      t.boolean :is_default, :default => false

      t.integer :courses_per_term, :null => false
      t.integer :work_reports, :null => false

      t.integer :cse_a, :null => false
      t.integer :cse_b, :null => false
      t.integer :cse_c, :null => false
      t.integer :cse_other, :null => false

      t.integer :min_math_sci, :null => false
      t.integer :extra_math_sci, :null => false
      t.integer :min_engsci_des, :null => false
      t.integer :extra_engsci_des, :null => false

      t.timestamps
    end
  end

  def self.down
    drop_table :degree_requirements
  end
end
